package com.module.msg.view

import cn.leancloud.LCObject
import cn.leancloud.LCQuery
import com.module.app.base.BaseActivity
import com.module.app.base.BaseViewModel
import com.module.base.ext.request
import com.module.msg.bean.MsgBean
import com.module.msg.databinding.MsgActivityMsgHotBinding
import com.module.third.learcloud.lcQuery

/**
 * Author: yanxuwen
 * Date: 2023/3/20
 * Desc:
 */
class HotMsgActivity : BaseActivity<BaseViewModel, MsgActivityMsgHotBinding>() {
    override fun bingViewModel() {
        mDatabind.vm = mViewModel
    }

    override fun initView() {
        super.initView()
        setCommonTitle("公告")

        request(
            {
                val tClass = MsgBean::class.java
                val query = LCQuery<LCObject>(tClass.simpleName)
                query.whereEqualTo("isHot", true)
                lcQuery(query, tClass)
            }, {

            }, {

            })
    }
}